package com.epin.base.defaults;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 
 * @author DELL
 *
 */
@Component
@ConfigurationProperties(prefix = "constant",locations={"classpath:constants.properties"})
public final class AppConstants {
	
	/**
	 * uc的token
	 */
	private static final String UC_TOKEN = "uc_token";
	
	/**
	 * 超级管理员角色id
	 */
	private static final int ADMIN_ROLE_ID = 1;
	
	/**
	 * 超级管理员角色KEY值
	 */
	private static final String ADMIN_ROLE_KEY = "administrator";
	
	/**
	 * map默认大小
	 */
	private static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;
	
	/**
	 * scp地址
	 */
	private String scpUrl;

	public static String getUcToken() {
		return UC_TOKEN;
	}
		
	public static int getAdminroleId() {
		return ADMIN_ROLE_ID;
	}
	
	public static String getAdminRoleKey() {
		return ADMIN_ROLE_KEY;
	}
	
	public static int getMapDefaultSize(){
		return DEFAULT_INITIAL_CAPACITY;
	}
	
	public String getScpUrl() {
		return scpUrl;
	}

	public void setScpUrl(String scpUrl) {
		this.scpUrl = scpUrl;
	}
}
